<template>
  <div>
    <MyNavBar></MyNavBar>
    <p v-html="content"></p>
  </div>
</template>
<script>
import{getNews} from "../api/newsApi"
import MyNavBar from "../components/MyNavBar.vue"
export default{
  components:{
    MyNavBar,
  },
  data() {
    return {
      content:null,
    }
  },
  mounted() {
    getNews().then((content) => (this.content = content));
  }
}
</script>
<style>
.title{
  text-align: center;
  background: none;
}
</style>
